<section>
    <h1>{{messages.view.workspace.crud.h1}}</h1>
    <form>
        <fieldset>
            {{#eq action "add"}}
            <h2>{{messages.workspace.view.add.title}}</h2>
            {{/eq}}
            {{#eq action "edit"}}
            <h2>{{format messages.workspace.view.edit.title model.attributes.name}}</h2>
            {{/eq}}
            {{#eq action "delete"}}
            <h2>{{format messages.workspace.view.delete.title model.attributes.name}}</h2>
            {{/eq}}
            {{#eq action "view"}}
            <h2>{{format messages.workspace.view.view.title model.attributes.name}}</h2>
            {{/eq}}

            {{#neq action "add"}}
            <input class="form-control" type="text" style="display: none" data-bind="value: id" />
            {{/neq}}

            <div class="form-group">
                <label class="control-label">{{messages.workspace.attribute.name}}</label>
                <input class="form-control" type="text" placeholder="{{messages.workspace.attribute.name}}" data-bind="value: name" />
            </div>

            <div class="form-group">
                <label class="control-label" >{{messages.workspace.attribute.label}}</label>
                <input class="form-control" type="text" placeholder="{{messages.workspace.attribute.label}}" data-bind="value: label" />
            </div>

            {{buttonsCrud action}}
        </fieldset>
    </form>
</section>